package cn.pangza.user.entity.dto;

import cn.pangza.user.entity.po.Menu;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class MenuDto {
    private Integer id;
    @NotEmpty(message = "组件标题不能为空")
    @NotNull(message = "组件标题不能为空")
    private String title;
    @NotEmpty(message = "组件名不能为空")
    @NotNull(message = "组件名不能为空")
    private String name;
    @NotEmpty(message = "组件路径不能为空")
    @NotNull(message = "组件路径不能为空")
    private String path;
    @NotNull(message = "父级菜单不能为空")
    private Integer parentId;
    private Integer orderNum;
    private List<Menu> children;
    private String icon;
    private Boolean button;
    private Boolean show;
    private String permission;
    private Integer auth;
}
